//package cn.autumnorange.user.service;
//
//import cn.autumnorange.commons.util.StringUtils;
//import cn.autumnorange.user.entity.UserEntity;
//import cn.autumnorange.user.entity.repository.UserRepository;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//import java.util.UUID;
//
//@Service
//public class UserServiceImpl implements UserService {
//    @Autowired
//    private UserRepository userRepository;
//
//    @Override
//    public void saveUser(UserEntity userEntity) {
//        if (StringUtils.trimToNull(userEntity.getId()) == null) {
//            userEntity.setId(UUID.randomUUID().toString());
//        }
//        userRepository.save(userEntity);
//    }
//
//    @Override
//    public List<UserEntity> findUserByNameLike(String name) {
//        return userRepository.findByNameLike(name);
//    }
//}
